<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/jirui/eager/yg_log.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/jirui/eager/yg_log.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'ID',
                footer: "Foots",
                cnName: '亿格日志',
                name: 'eager/yg_log',
                url: "/yg_log/",
                sortName: "ID"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"UPDATETIME":"","UPDATEINSERT":""});
            const searchFormOptions = ref([[{"title":"备注","field":"NOTE","type":"like"}],[{"dataKey":"亿格日志_更改方式","data":[],"title":"更改方式","field":"UPDATEINSERT","type":"select"},{"title":"更改时间","field":"UPDATETIME","type":"datetime"}]]);
            const columns = ref([{field:'ID',title:'流水号',type:'decimal',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ORAUSER',title:'数据库用户',type:'string',sort:true,width:60,hidden:true,readonly:true,align:'left'},
                       {field:'OSUSER',title:'操作系统用户',type:'string',sort:true,width:120,readonly:true,align:'left',sort:true},
                       {field:'MACHINE',title:'机器名',type:'string',sort:true,width:120,readonly:true,align:'left'},
                       {field:'CLIENTPRO',title:'CLIENTPRO',type:'string',width:110,hidden:true,readonly:true,align:'left'},
                       {field:'UPDATETIME',title:'更改时间',type:'datetime ',sort:true,width:110,readonly:true,align:'left'},
                       {field:'UPDATEINSERT',title:'更改方式',type:'string',bind:{ key:'亿格日志_更改方式',data:[]},sort:true,width:100,readonly:true,align:'left'},
                       {field:'NOTE',title:'备注',type:'string',width:500,readonly:true,align:'left'},
                       {field:'IPADDRESS',title:'IP地址',type:'string',sort:true,width:110,hidden:true,readonly:true,align:'left'},
                       {field:'TABLENAME',title:'数据表',type:'string',width:110,hidden:true,readonly:true,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
